/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.iterator;

/**
 *
 * @author Nashief
 */
public class Item {
    String name; 
    float price;
 
public Item() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public Item(String name, float price) {
        this.name = name;
        this.price = price;
    } 
    
    public String toString(){
    
    return name+":"+price;
    }
    
    
}
